package com.falling.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.falling.reggie.dto.DishDto;
import com.falling.reggie.entity.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishMapper extends BaseMapper<Dish> {

//    @Select("SELECT dish.`name` AS name, category.`name` AS categoryName FROM dish, category WHERE dish.category_id = category.id LIMIT #{page}, #{pageSize}")
//    List<DishDto> selectDishAndCategory(int page, )
}
